<?php
define("BASEDIR", __DIR__);

include BASEDIR.'/IMooc/Loader.php';

spl_autoload_register("\\IMooc\\Loader::autoload");

//$db = IMooc\Factory::createDatabase();

//$db = IMooc\Register::get("db1");

//$db = new IMooc\Database\MySQL();

//$db = new IMooc\Database\MySQLi();

$db = new IMooc\Database\PDO();

$db->connect("127.0.0.1","root", "", "zerg");
$res = $db->query("select * from banner limit 1");
var_dump($res);
$db->close();

